/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package alcatelparser.tags;

import alcatelparser.modules.BuilderFactory;
import alcatelparser.modules.I;

/**
 *
 * @author geniuz
 */
public class TrunkGroupIncomingTag extends DefaultParserTag
{

    public TrunkGroupIncomingTag()
    {
    }
    private String value;
    public String GetResult(){
        return value;
    }
    public final void parseTag(int ai[], int i)
    {
        setStandartLength(ai, i);
        _array = ai;
        _startParsePosition = i;
        if(isFullForm())
            BuilderFactory.getBuilder().writeTagContent(3, 0, getTagPropertiesValue(I.I(2621)), getTagIdentifyContent(i, i + 1));
        String s = "";
        if(ai[i + 4] == 25)
        {
            for(int j = 0; j < ai[i + 5]; j++)
                s = (new StringBuilder()).append(s).append((char)ai[i + 6 + j]).toString();

        }
        value = s + "~";/*
        if(isFullForm())
        {
            String s1 = (new StringBuilder()).append(getTagIdentifyContent(i + 2, i + 3)).append(getHexStringContent(i + 6, ai[i + 5])).toString();
            BuilderFactory.getBuilder().writeTagContent(4, 0, getTagPropertiesValue(I.I(6156)), s1);
            BuilderFactory.getBuilder().writeTagContent(4, 2, "", (new StringBuilder()).append(I.I(5979)).append(s).toString());
        } else
        if(isTagChecked(I.I(2602)))
        {
            String s2 = isFieldsDecoding() ? s : getHexStringContent(i + 6, ai[i + 5]);
            BuilderFactory.getBuilder().writeTagContent(1, 0, getReducedTagPropertiesValue(I.I(2621)), s2);
        }*/
    }

    public final String getParseIdentityTag()
    {
        return I.I(6153);
    }
}
